﻿using System;
using System.Collections.Generic;
using System.Text;

namespace JESAI.Core.Websocket.Client.Models
{
    /// <summary>
    /// 重新连接相关信息
    /// </summary>
    public class ReconnectionInfo
    {
        /// <summary>
        /// 重新连接相关信息
        /// </summary>
        public ReconnectionInfo(ReconnectionType type)
        {
            Type = type;
        }

        /// <summary>
        /// 重新连接原因
        /// </summary>
        public ReconnectionType Type { get; }

        /// <summary>
        /// 简单工厂方法
        /// </summary>
        public static ReconnectionInfo Create(ReconnectionType type)
        {
            return new ReconnectionInfo(type);
        }
    }
}
